<?php
namespace app\test\controller;
use app\common\exception\Client;
use app\common\exception\Server;
use think\facade\Log;

class Test
{
    public function test()
    {
        throw new Client(10000,'手机号格式错误', [
            'input' => '123',
            'rule' => '/^1[3-9]\d{9}$/'
        ]);
//        throw new Server("MySQL连接失败：Connection refused");
//        throw new Client(10000,'服务器错误 ',[]);
    }
}